home *** CD-ROM | disk | FTP | other *** search
- #!C:\\perl\\bin\\perl.exe
- # Created: February 12, 2001
- # Sample Script To Use The TEConnection Object.
-
- use OLE;
-
- #Create TEConnection Object.
- my $Kyle = CreateObject OLE "CuteFTPPro.TEConnection";
-
- #Specify Connection Properties
- $Kyle->{Protocol} = 'FTP';
- $Kyle->{Host} = 'kyle.globalscape.com';
- $Kyle->{Port} = '21';
- $Kyle->{Login} = 'anonymous';
- $Kyle->{Password} = 'anonymous@somewhere.com';
- $Kyle->{TransferType} = 'AUTO';
- $Kyle->{RemoteFolder} = '/pub';
- $Kyle->{LocalFolder} = "C:\\";
-
- #Grab The Latest Version Of CuteZIP
- if (!$Kyle->RemoteExists('/pub/cutezip/cutezip.exe'))
- {
- print "Remote file does not exist\n";
- exit(1);
- }
- else
- {
- #Start Download.
- $Kyle->Download('/pub/cutezip/cutezip.exe', "C:\\cutezip.exe");
- }
-
-